<form class="layui-form" lay-filter="tpl_advent{$advent_id}" action="{:url('advent/saveData')}">
	<input type="hidden" name="advent_id" class="layui-input" />
	<div class="layui-form-item">
		<label class="layui-form-label">广告位</label>
		<div class="layui-input-inline">
			<select name="adsense_id" lay-filter="adsense_id{$advent_id}">
				{volist name="getAdsense" id="list"}
					<option value="{$list.adsense_id}">{$list.adsense_name}</option>
				{/volist}
			</select>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">广告名称</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<input type="text" name="advent_name" lay-verify="required" placeholder="请输入广告名称" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">广告链接</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<input type="url" name="advent_url" lay-verify="required" value="#" placeholder="请输入广告链接" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">广告图片</label>
		<div class="layui-input-block">
			<blockquote class="layui-elem-quote layui-quote-nm">
				<div class="layui-upload-list" id="layui-upload-list{$advent_id}"></div>
				<div class="layui-upload-drag advent_picture_upload" id="advent_picture_upload{$advent_id}">
				  <i class="layui-icon layui-icon-upload"></i>
				  <p>点击或拖拽上传</p>
				</div>
			</blockquote>
		</div>
	</div>
	<div class="layui-form-item">
			<label class="layui-form-label">显示排序</label>
			<div class="layui-input-inline layui-input-number">
				<input type="number" value="0" name="sort" lay-verify="required|number" placeholder="" autocomplete="off" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">前端显示排序</div>
		</div>

	<div class="layui-form-item">
		<div class="layui-input-block">
			<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submit_advent">保存数据</button>
			<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		</div>
	</div>
</form>
<script>
	// 赋值
	var advent_id = "{$advent_id}";
	var advent_form_value = {$data};
</script>
<script src="/static/js/advent/advent_tpl.js" type="text/javascript" charset="utf-8"></script>
